package com.shure.surdes.common.query;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.Data;

import java.io.Serializable;

@Data
public abstract class Query implements Serializable {

    private Integer pageNum = 1;

    private Integer pageSize = 12;

    public Page getPage() {
        return new Page(this.pageNum, this.pageSize);
    }

    public Page getPage(Integer current, Integer size) {
        return new Page(current, size);
    }

    public abstract <T> Class<T> getClazz();


}
